#ifndef __MYEXIT_H
#define __MYEXIT_H

#include "n32g45x.h"

#define KEY_INPUT_PORT        GPIOB
#define KEY_INPUT_PIN         GPIO_PIN_2
#define KEY_INPUT_EXTI_LINE   EXTI_LINE2
#define KEY_INPUT_PORT_SOURCE GPIOB_PORT_SOURCE
#define KEY_INPUT_PIN_SOURCE  GPIO_PIN_SOURCE2
#define KEY_INPUT_IRQn        EXTI2_IRQn
#define KEY_INPUT_IRQHandler    EXTI2_IRQHandler

#define SENSOR_INPUT_PORT        GPIOA
#define SENSOR_INPUT_PIN         GPIO_PIN_0
#define SENSOR_INPUT_EXTI_LINE   EXTI_LINE0
#define SENSOR_INPUT_PORT_SOURCE GPIOA_PORT_SOURCE
#define SENSOR_INPUT_PIN_SOURCE  GPIO_PIN_SOURCE0
#define SENSOR_INPUT_IRQn        EXTI0_IRQn
#define SENSOR_INPUT_IRQHandler  EXTI0_IRQHandler


void SensorInputExtiInit(void);

void KeyInputExtiInit(void);

#endif







